package com.awenhui.demo.filter;

import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author yuxf
 * @version 1.0
 * @date 2020/5/9 11:43
 */
public class MyFilter2 extends OncePerRequestFilter {
    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
       // System.out.println(this.getClass().getName()+"执行前。。。");
        filterChain.doFilter(request,response);//交个下一个过滤器执行
      //  System.out.println(this.getClass().getName()+"执行结束。。。");
    }
}
